﻿<UserControl x:Class="Rifts.Creator.CreatorView"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:controls="clr-namespace:Rifts.Controls"
			 mc:Ignorable="d" 
			 d:DesignHeight="300" d:DesignWidth="500">
	<DockPanel>

		<Grid DockPanel.Dock="Bottom" Margin="4">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition Width="*"/>
				<ColumnDefinition Width="Auto"/>
			</Grid.ColumnDefinitions>

			<!--<Button Content="Preview" Grid.Column="0" Width="100" />-->
			<Button Content="Reset Page" Grid.Column="0" Width="100" Command="{Binding ResetCommand}" />
			<TextBlock Text="Warning, there is no going back."  Grid.Column="1" HorizontalAlignment="Right" Margin="8"/>
			<Button Content="Next" Grid.Column="2" Width="100" Command="{Binding NavigateNextCommand}" />

		</Grid>

		<Frame Name="NavigationFrame" NavigationUIVisibility="Hidden" DockPanel.Dock="Left" Margin="8">

		</Frame>
		
		<Border Margin="4" BorderThickness="1" BorderBrush="Black" Visibility="{Binding Character, Converter={StaticResource NotNullToVisibleConverter}}">
			
			<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
				<StackPanel DataContext="{Binding Character}">
					<controls:CharacterSheetPage1 Margin="20" />
					<controls:CharacterSheetPage2 Margin="20" />
				</StackPanel>
			</ScrollViewer>
			
		</Border>
	</DockPanel>
</UserControl>
